Update syncdb script to work with postgres