added code for simpleDB