Method to get all stored entries in database.
Adding pairs on post request.