got some db stuff working