added cp to db