Database improvements.