Add in database haar transform