Sync API with Client for Register/Create Coupon. Fixed minor bug in tables.sql.