add db query, update, auto complete