Move database configuration to config file