Change DB model. add settings, messages entiies and add lastuser relationship to user