Fix for app to work with changed database