finish basic add modify update query function

finish basic add modify update query function