Closes #71 adds functions and db for open close times