Fix bug where database schema needed to be updated before rest of updates take place