making connection details in Drupal config & adding page load functionality