fixing incorrect URL in createSession function
redesigning db