working sample code lua sqlite