Implemented Changes in Database.

Implemented the changes in the server. Also removed hard coding of
USER-ID from the APP. Now USER_ID is obtained using a query on Device.