Added the main functionality and database interface
Added the reset page