basic query implementation + start db and collection