Added populating the db and querying it.