Code Refactored and working push and get operation,change the server
address in necessary places.