Improved error messages
Added validation for database configurations