Modifying old DB Script

Trying to adapt, theoretically, the chastity database code into
battleship.