Add a from date limitation in queries
TODO add stored procedure to populate periodic statistic
TODO create cache table with statistics daily weekly monthly...
TODO add columns to insert tile reference, cache daily, cache... id