Added saveProfile to Sql class.