fix database uri and delete wrong database.