Fixed database upload when app is running