implement db models
minor fixes
Merge pull request #1 from BrianBreniser/staging

implement db models