add sessiondb api for session database connection