Improve database security [ci skip]