post_install() {
	
        mysql -u root -e 'create database ncid;'  
	echo installing the default database
	mysql ncid < /tmp/ncid.sql 
	mysql < /tmp/ncidpermissions.sql
	rm /tmp/ncid.sql
	rm /tmp/ncidpermissions.sql
}
post_upgrade() {
	echo "nothing to do"
}

op=$1 
shift 
$op $*