db stuff is starting to work