added offer rest, changes in db models