Working Version after  sql db removal