Better handling of inactive databases.