Mainly debian related updates
Changes an SQL script