add database fucntionality using datalog features
add datalog dependencies
handle different request types in websocket
apply new socket datastructures