Setting up DB

Basic functionality and testing for the controllers and models. All tests passing.