simplified cache.sql create statement (to be compatible with more database dialects)