add static-pages controller, modify database.yml for postgresql