add a conversion script for postgres