Use a single connection to the db
store lines for each channel