Found cause of db error when initialising the db, now to figure out what to do about it.