settings: Make it possible to use ibm_db_django engine

This is a forward-port of 49362b6d633a7784f77650d5218d0e629d50e4fb