fix db config for django < 1.2