Create loader.php

include function and config file and create database connection.