Simplifies db-bootstrap queries to increase performance on large databases.