working database handler,time to work with gui part