cleaned up configuration, DB authentication, common db connection