changing session store to active record