adjust to adapat to db