added 'type' to DB, updated readme