Keep db dirs
Added ssl support