Further integration testing. Paired by Richard and Michael.

Further integration testing reveals that the pi's internal database is suffering from concurrency issues, and keeps locking so
that input patterns cannot be inserted into it. (Feature #181)