#000 set database and session factory