db setting
minor bubug fixes at profiles/models.py