Add database connection information to config file
Fix username error and error reporting