Added database querying thoughts