Do background of Behat tests in database

Instead of running the background portions of Behat tests in the
browser directly manipulate the database.  This will result in way less
overhead for each test and less chance for failure in a non-test
background segment.