Adds database struct file

Dump of the database structure
Adds api files