create a stateful database server