Remove SQL codes

Make it simpler code wise so just creating the record