added started session. database model functions