fixed small bug in Session::Database