Database Commit

Program is good but doesnt work with mysql.