Updates to SQL in preparation for a basic CMS