added db based queue system