adding session to database