added database config and connect to it