Move DB configuration to config