GUI and database works