Now can send simple java objects to database.