finalized database calls, populates database using api if the selection isn't currently available in the db