sql database almost done