Use factory method to get db instance.
Add default to queue enum.