added queue access locking
basic db connection and table creation