Added database, tcpserver and wpf functional