Closes activity DB when viewing page