database port code