Break up mfdb.R into mfdb_queries.R and mfdb_sql.R (for SQL-constructing helpers)