Figured out some database issues