Transcription of the database template from MySql to Postgresql

Transcription of the database template from MySql to Postgresql.