add contact page, use let fcn to refactor test, use postgresql for db