adding the functions that will allow us to query the database