Database now stores differently named runs in different tables.
Cleaned up a bit of unused code.