Hi Mayur,
Yes this can be done by BAPI's, you have to first decide which BAPI to use.
There are many standard BAPI's available in SAP which can be used for fetching and inserting data from and in DB.
Decide what data you will be inserting in DB, Like data related to sales order or customer and than search for relevant BAPI.
I think this may help to start with.
Regards,
Ganesh