Config port in database