connecting with database

this files is used to connect with the database. line number 3 is to
make connection with mysql and line 4 is to connect with particular
database db_name is name of my database where all the tables are there.