Switch to use DATABASES instead of DB.