Refactored how the jdbc configuration is done, templating now as a here document