Database

I've implemented the database structure.