Get param by time: test passed; Fixed one bug in databases, test added; Small refactoring;