Updating the database structure