database and session setup created