storing depth used for parse in db, no need to specify it when generating