damn sql db working finally