Add database initialisation to helper.php