added fallback to mysql_db for data cache