Store and Organize Time Series in a Database