WP and database upgrade