small restructure, databases can now be updated for different time periods