Create session in the database