fixed database.sql problem.