Properly set up db config