Add unpack and psql actions to data import script

Perhaps time to merge with the develop branch.