his actual job was keeping the books , both the official set of books showing the liquor bought and sold on the premises and second set recording the transactions that took place in the middle of the night in which entire shiploads of rum were conveyed .