Method to read the database