Set database settings