getting all the info in the database