Fixed database config problem