Added threaded db.session, logger verbose and more