removed null output; fixed mysql gem invocation