Use group instead of db in the API.
Default period to every minute.
Inc version.