base database structure