closes #1; adds GET endpoint for autodetecting tables