add support for meta query in dbmodel