Added api for db_master