Added a button that perfoms a sql query