refactor and UI changes, added main page, and some database stuff
see previous
see prev