Got rid of the insert errors on the server

Closes #36 

@AlexeyMK