added user model and fixed db config