adding some error cases: config file missing or no access to database (error mysql 1045)