build out database structure