fixed infinite recursion in Entity
fixed some datatype handling (DatabaseHandler was doing the dimension stuff twice and the regex matching didn't seem to work at least for debian ARM targets)