Added openDataBase call to refreshDataBase