Adjust the database update (tested with version 2.11, 3.0 and 3.1)