Moved database configuration to root level