implement handshake prototype

hatin' on this stupid db abstraction layer we have going here