Dealing with multigranular spatio-temporal databases to manage psychiatric epidemiology data