Fix database cofiguration