Database 2

middle in dao design
I propose to use cursor.getColumnIndex() method for getting index position. With current implementation it is very easy to get wrong column value in case of changes in columns list.