cmake: Add DBStateServer.cpp and build options