modified do-execute! to send Sync message
supporting date type insert or update
adding proper bytea handling