note to self: close db connections