Fix DB, added commit()