Adding Sql database functionality for code complete