Support for DB port during install

- Support for DB port during install
- Remove endings of PHP tag from some files