database logics tested