Created the database connection script

The script for getting data from the database.