Initial commit

- Add SQLObjects for database
- Add initial code for both application run modes