some db stuff added