Initial version of db schema

This is just a draft version of schema for the app. It will be updated
soon. I just want to start with something and keep it under version
control.