Edits made to Database and Epilogue class, config reorganized

We were trying to solve some issues related to queries and sessions. A
lot of this was about integrating with Baldwin’s code.