ghost in the sql database