advanced_notice

Added logic for advanced notice detection
added sql table mappings

Mappings for Contact and Company tables
set up db connect function in sql file

created a function to connect to the database and return an engine and
session
cosmetic formatting

Adjusting code format