some rspec tweaks. move the db client into its own file.