add abstract query
implements select and update
add last query getter and implement execute