Basic database structure

Add some basic database structure.