migrate User class to DB, auto restart service if killed