coding in db