added button to delete all points in database
cleaned up the code a tad