Used mysql to add rows to databae instead of insert statement