Create migration for lastquery_cache table
Store cache data regarding last query time in db instead of file (easier migration and so on)