Bit more error handling
Updates to the sql to add releases table.