db query builder moved to regex self constants