database structures class