Changes datebase to pd