now with users - and using postgresql