fix select field and fill in some blank
change template and try to keep the db connection