Database support to warehouse