Fixed database driver
Fixed error in native session driver