managed to get sqlite working