Catch errors, use default database driver

Catch errors from not working PDO connections etc.
Added the memory driver as option.