Separated db config files, added autocommit to db connections, fixed broken tests