add an option to control the DB connecting
beautify the front pages
add the exceptions catching in database connecting