Untested suggestion:
Delete old records from the client when the app starts:
sql.ExecNonQuery2("DELETE FROM data WHERE time < ?", Array(DateTime.Now - 7 * DateTime.TicksPerDay))
You can do a similar thing when the server starts or better every day using a timer in DB module.