Updated insert callback in save function to return doc since jugglingdb expects object with _rev key