Deprecated QueryManager and moved its methods to DbManager