database structure  + database helpers