DBHelper createEntry bugfix

type is now properly added