database.commmit() fix 2.1