updating public api of database