added database schema

this is currently not compatible with the site, fix coming in the next
commit