move sessions in db
move environment selection to database(setting menu)