comment database related code