Fix exit code in debian scripts and remove manual database deletion in postrm script