Removing/rearranging database elements