begin db struct