builder pattern implemented for query creation in daos