#2 fix db type