fixed error in seed database method