Adapt old SQL file containing the base database