Database Stateserver - Part 1

Matches implemented functionality of Stateserver and solves Issue #85.