Fixed config for database to work