adding database and portal