adding some db stuff