moved database layer to CAIRS fw