threaded-db-calls working