fixed db, ewerything work TO DO: GUI