Moved database files to controllers, renamed logic to models. Restructured
to controller and driver.