Cleanup shitty SQL.

Signed-off-by: SkyFire <admin@projectskyfire.org>