Verify for database existence
Added comments