add data base interaction

test #1