add session config and database