update stub structure, add db