Added descriptor check to session open call

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Fixed sqlite rdbms adapter

Signed-off-by: Tom Wright <tom@inflatablecookie.com>