devise invitable and environment variables
update session store to db, fix family type nil problem