update database configuration and remove vim tempfiles