fn query_db(
    database: &Arc<Mutex<Database>>,
    timestamp_ge: Option<f64>,
    timestamp_le: Option<f64>,
    subsystem: Option<String>,
    parameters: Option<Vec<String>>,
    limit: Option<i32>
) -> FieldResult<Vec<Entry>>