Investigate the current queue implementation in the Woodpecker codebase, likely in the server or queue package. Understand how queue state (e.g., paused) is stored in memory. Then design a persistence layer using a database to save the paused state across restarts. Review existing database handling patterns in the codebase for reference.