Started method for select (needs debug) and started modifying insert