refactor database, rename good to goods
refactor database & add validation
refactor db
add validation