Fix the connect to database without db config bug, the app will detect if the db config is null and then connect to db or display error message. (#12, #13)