Changed the code to of edit and add to a single file, added transaction power to Mysql adaptor