Framework for script

Added index.php and scripts for connect and functions