add some functions and update db model
resolved conf