change the database upgrade process to split alters into separate queries to avoid 'Commands out of sync' mysql error