Define basic database structure