Added background worker task with a simple sqlite based job queue