improvements and bug fixes. Added db location selection on UI.