How do you handle an app that needs both a database and background jobs?