Fixed the sql db