Fix dbSchema to declare tables properly. Add documentation.