Improve database configuration process