//Init initializes the service and creates any tables necessary in Service.DB to run the service
func(c*Service)Init(){
if_,err:=c.DB.Exec("CREATE DATABASE IF NOT EXISTS packetlostandfound");err!=nil{
log.Fatal(err)
}
//if _, err := c.DB.Exec("CREATE DATABASE IF NOT EXISTS packetlostandfound"); err != nil {
// log.Fatal(err)
//}
if_,err:=c.DB.Exec("CREATE TABLE IF NOT EXISTS CONTACT_SUBMISSIONS(ID SERIAL PRIMARY KEY, EMAIL TEXT NOT NULL, MESSAGE TEXT NOT NULL, SUBMITTED DATE NOT NULL DEFAULT CURRENT_DATE)");err!=nil{