Change csrf imports and database settings for django 1.4