Use a queue instead of finding 'Pending' submits from the database.
Merge pull request #30 from asi1024/use-queue

Use a queue instead of finding 'Pending' submits from the database.