Hash access using Date for MySQL with String fallback for SQLite