Write data to database using iBatis.