Fix improper use of database settings which made tests fail.