could make a helper method so it reads easier. for example, make a helper method: in_database? or something along those lines