WIP! :bomb: initial attempt at template for postgreSQL support