basic upload database and view data works