Improve populatedb command to work with PostgreSQL