added npm postinstall script for updating the database