bugfixes, new DB order scheme (timestamp instead of date)