adds sql init and configures config file