seems weird to open a db every time a user clicks on a button...