Fixed database url bug