fixed DB commit() function as it has to be part of the connect() function