added leon's code, this includes writing and reading to a sqlite database. The entire popupformhas been changed
handled some minor changes to the combobox which handles gender in the popupform