pre redoing some db stuff