commit after changing databases