added postgres adapter and user model