Implemented insert into mysql