started debugging all the broken things that resulted from the database switch