Database Script Fix

Fixed the bug that didn't let the database be created with the previous
version.