Good way to connect database in Phalcon php framework

Database connection settings can be done by registering services in the container.
Here is how we can connect a postgresql database