Implemented rudimentary database and settings