added connect.php to negotiate database connections and put some skeleton code in gallery.php