Method for adding records in MySQL