working insertion from server