Support for PostgreSQL

Added support for PostgreSQL and option to have DB server and gitlab server separated.