more database functionality. Began creating functions for button click
(incomplete). (non-compile)