Small Changes and Fixes

Check for empty input etc. (added functions in DBAdapter...)