refs #10: updated the DB definition for django 1.4/1.5