add db-sqlite dependency. Change code for django 1.5