added db settings and corrected IntFiel -> IntegerField