added database migration to multiple instances;
fixed some bugs with times