Push sync into the database so we can call it from couchconnect, add parameter to this method to indicate we are
transitioning to online.