Fix #645 and fix SQL query
Fix #645 and fix SQL query

steveklabnik/crates.io,rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io,steveklabnik/crates.io,steveklabnik/crates.io,steveklabnik/crates.io