diff --git a/create_db.py b/create_db.py
new file mode 100644
index 0000000000000000000000000000000000000000..1c34c2c21e877940c4e5aed50a654a354d9a5dec
--- /dev/null
+++ b/create_db.py
@@ -0,0 +1,3 @@
+from geomagio.api.db.create_db import create_db
+
+create_db()
diff --git a/test_residual.py b/test_residual.py
new file mode 100644
index 0000000000000000000000000000000000000000..686dc53001ab4fb2002b961ad9e97dd98bbab56f
--- /dev/null
+++ b/test_residual.py
@@ -0,0 +1,27 @@
+import json
+from obspy import UTCDateTime
+
+from geomagio.residual import (
+    CalFileFactory,
+    SpreadsheetAbsolutesFactory,
+    WebAbsolutesFactory,
+)
+
+
+input_factory = SpreadsheetAbsolutesFactory()
+readings = input_factory.get_readings(
+    observatory="CMO",
+    starttime=UTCDateTime(2020, 1, 1),
+    endtime=UTCDateTime(2020, 1, 8),
+)
+print(
+    json.dumps(
+        readings,
+        default=lambda x: isinstance(x, UTCDateTime) and str(x) or x.__dict__,
+        indent=2,
+    )
+)
+
+output_factory = CalFileFactory()
+out = output_factory.format_readings(readings)
+print(out)