reimplementation of crud table