Erase all but databse and get method