Persists user on db

- And refactor the templates.
Merge pull request #7 from romanoaugusto88/persist_user

Persists user on db