refactoring to tidy things
adding in db migration etc
initialise the amberDb