added the DatabaseScript from Greg