SaveAs Fix

Fixed save as by using realtime "get" and "update" after inserting a new document.