Setting up db config