Added postgres sql script for system database