fixed db and did unit testing
modified the form and to work with new vers of db