Commit basic database helper methods
Simplify somewhat
Reorganize helper functions
Simplify some code and add dischner_filltable template