got the db connected to front end for input, need to work on output