Fixed bug in chooseDataBase and moved default database in LocalAppdata directory