Implemented functionality for adding server response to local database