How To Generating A Database-backed Api