converted to qt5
fixed db path issue