changed view to new tabel, added mysql to input