update sqlite gem syntax and convert rspec should syntax to newer expect