Database interface for Rust