Changed some db stuff