Persists user on db

- And refactor the templates.

Raw queries for a while :hammer: 
Yes, I don't know ruby. :P