Revert "RealmsDB SQL updates for aa03688165a698cb207971849b040f4da733a014"

This reverts commit 082550f8006962917598d180b542ba9a2255ac4e.