Improve db settings