changed db stuff