Design basic database structure