Working db saving