Added Chris' code to dbi.rb and server.rb from gist