Binary tress with database conection