Setting PostgreSQL as database engine and Hamlpy as template loader