PostgreSQL, MSSQL and Oracle database helper scripts