Moved all inserts to methods on the server
Fixed some issues with inserts and moved update to server
Merge pull request #2 from angelaz/secure

Removed insecure package