publication to db implemented