used as db