now reading from db

the maze now reads from the database, and exit was reconnected.