This tutorial explains how to insert data into a table
This tutorial explains how to fetch data from database
This tutorial explains how to store binary data into database