Postgresql support.
Fixed user factory and account show spec when database authentication is selected.