create postgrest scripts