Database factory exceptions
Db factory class