working postgres notification on insert
refactored user model