added databse and gui