Added basic GUI and database functionality