added status to database structure

the database structure can now handle status flags on both device and
group level along with which prio it has over another.