Add index.js, connection functions